import AppLayout from '@/core/components/layouts/AppLayout'
import IsAuth from '@/lib/auth/components/IsAuth'
import TransactionComponent from '@/lib/transaction/components/Transaction'
import { useRouter } from 'next/router'

export default function Transaction() {
  const router = useRouter()

  return (
    <IsAuth>
      <AppLayout title='Transaksi'>
        <TransactionComponent id={router.query.id} />
      </AppLayout>
    </IsAuth>
  )
}
